import {getLunar} from 'chinese-lunar-calendar'

export function lunarDate(pDate: Date) {
    const year = pDate.getFullYear()
    const month = pDate.getMonth() + 1
    const day = pDate.getDate()
    const result = getLunar(year, month, day)
    return result.dateStr
}
